
package com.jintian.smart.base.api.support.view;

import com.jintian.smart.kernel.core.domain.IView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 列
 */
@Data
public class TableColumnVO implements IView {
    @Schema(description = "列名")
    private String columnName;

    @Schema(description = "列描述")
    private String columnComment;

    @Schema(description = "数据类型varchar")
    private String dataType;

    @Schema(description = "是否为空")
    private Integer nullableFlag;

    @Schema(description = "是否为主键")
    private Integer primaryKeyFlag;

    @Schema(description = "是否递增")
    private Integer autoIncreaseFlag;

    // --------------- 临时字段 -------------------

    @Schema(hidden = true)
    private String columnKey;

    @Schema(hidden = true)
    private String extra;

    @Schema(hidden = true)
    private String isNullable;
}
